<?php
defined('JOC') or die;

/**
 * Description of module
 *
 * @author jcamelis
 */

class Module {
  private  $Ids    = Array() ;
  public  $_elements = Array() ;

  function __construct() {
    global $db ;

  }
  function select($arrIds = 0){
    $this->Ids        = is_array($arrIds) ? $arrIds : Array($arrIds) ;
    $this->_elements  = $this->_select() ;
    return $this ;
  }
  function get_Element($id = 0){
    return $this->_elements ;
  }
  function get_Elements($params=''){
//  	debug::pr($this->_elements) ;
    return $this->_elements ;
  }
  private function _update(){
    
  }
  private function _insert(){
    
  }
  private function _delete(){
    
  }
  /*
   * Tasks to execute after get the contents of this module_intance
   * 
   * */
  function post_process(){
  	
  }
}
